package com.shape;
import java.text.DecimalFormat;
public class Cricle extends Shape{
    private double radius;
    @Override
    public void area() {
        double area = Math.PI * radius * radius;
          DecimalFormat df = new DecimalFormat("#.00");
        System.out.println("圆的面积为:" + df.format(area));
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public Cricle(double radius) {
        this.radius = radius;
    }

    public Cricle() {
    }
}